package Demo.demo7;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ExceptionDemo {
    public void testCheck() {
        FileInputStream fis = null;
        String strDir = "";
        strDir = this.getClass().getResource("").getPath();
        try {
            fis = new FileInputStream(strDir + "1.txt");
            fis.close();
        }catch (FileNotFoundException e1){

        }catch(IOException e2){

        }
    }

    public static void main(String[] args) {
    }
}